package com.houmeiyuan.huiguniang.modles.dao;

import com.houmeiyuan.huiguniang.modles.domain.Product;
import com.houmeiyuan.huiguniang.modles.domain.ProductDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import java.util.Map;
@Repository
@Transactional
@Mapper
public interface ProductDao {
    Integer updateSellNumber(Map<String, Object> params);
    ProductDetail fetchByProductId(Map<String, Object> params);
    /* select * from product where id=#{id} */
    Product selectById(@Param("id") Integer id);

}
